﻿using Max.PH4_2102A.Shopping.Domain;
using Max.PH4_2102A.Shopping.DTO;

namespace Max.PH4_2102A.Shopping.IService
{
    public interface IUserService
    {
        //查询所有数据
        IQueryable<UserModel> GetAll(); 

        //查询带条件和分页
        IQueryable<UserModel> GetAll(string username,int pageIndex,int pageSize, out int total);

        //登录
        Tuple<bool, string, UserInfoOutputDto> Login(string username, string password);

        //添加
        int Insert(UserInsertInputDto dto);

        //锁定用户
        int LockUser(string phone);
    }
}